/**
 * Application layout
 */

.main-wrapper {
  position: fixed;
  top: 5px;
  right: 0;
  bottom: 5px;
  left: 0;
}

.column-wrapper {
  text-align: center;
  font-size: 0;
  display: flex;

  position: absolute;
  left: 100px; /* Reserve room for tools on the left edge of the screen. */
  top: 0;
  right: 50px; /* Reserve room for actions on the right edge of the screen. */
  bottom: 0;
}

.left-column {
  vertical-align: top;
  height: 100%;
  padding-right: 7px;
  flex-shrink: 0;
}

.main-column {
  height: 100%;
  position: relative;
}

.right-column {
  box-sizing: border-box;
  vertical-align: top;
  height: 100%;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;
  position: relative;

  /* Keep in sync with Constants.RIGHT_COLUMN_PADDING_LEFT */
  padding-left: 10px;
  /* Add some padding for the absolutely positioned .cursor-coordinates */
  padding-bottom: 20px;
}

.drawing-canvas-container {
  font-size: 0;
}

.sticky-section {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1000;
}

.sticky-section .sticky-section-wrap {
  display: table;
  height: 100%;
}

.sticky-section .vertical-centerer {
  display: table-cell;
  vertical-align: middle;
}

.left-sticky-section.sticky-section {
  left: 0;
  max-width: 100px;
}

.left-sticky-section .tool-icon {
  float: left;
}

.cursor-coordinates {
  color: var(--highlight-color);
  font-size: 12px;
  font-weight: bold;
  font-family: monospace;
}

.cursor-coordinates .drawing-zoom {
  position: absolute;
  top: -20px;
  left: 1px;
}

.cursor-coordinates .frame-info {
  line-height: 1.5;
  text-align: left;
}

/**
 * Canvases layout
 */

.canvas {
  position: relative;
  z-index: 1;
}

.canvas-container {
  position: relative;
  display: block;
}

.canvas-container .canvas-background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.light-picker-background,
.light-canvas-background .canvas-background {
  background: url('') repeat;
}

.medium-picker-background,
.medium-canvas-background .canvas-background {
  background: url('') repeat;
}

.lowcont-medium-picker-background,
.lowcont-medium-canvas-background .canvas-background {
  background: url('') repeat;
}

.lowcont-dark-picker-background,
.lowcont-dark-canvas-background .canvas-background {
  background: url('') repeat;
}

.canvas.onion-skin-canvas {
  opacity: 0.2;
}

.canvas.canvas-overlay,
.canvas.layers-canvas,
.canvas.onion-skin-canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.tools-wrapper,
.options-wrapper,
.palette-wrapper {
  float : left;
}

/**
 * Z-indexes should match the drawing area canvas superposition order :
 * - 1 : draw layers below current layer
 * - 2 : draw current layer
 * - 3 : draw layers above current layer
 * - 4 : draw the tools overlay
 */
.canvas.layers-below-canvas  {z-index:  7;}
.canvas.drawing-canvas       {z-index:  8;}
.canvas.canvas-overlay       {z-index:  9;}
.canvas.onion-skin-canvas    {z-index:  10;}
.canvas.layers-above-canvas  {z-index:  11;}
